﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace H.Hands.Remotings
{
    public class KeyBoardRef : MarshalByRefObject, IKeyBoard
    {
        private readonly IKeyBoard _KeyBoard;

        /// <summary>
        /// 封装一个键盘按键任务实例
        /// </summary>
        /// <param name="keyBoard"></param>
        public KeyBoardRef(IKeyBoard keyBoard)
        {
            _KeyBoard = keyBoard;
        }

        ///<inheritdoc/>
        public bool Click()
        {
            return _KeyBoard.Click();
        }

        ///<inheritdoc/>
        public bool Down()
        {
            return _KeyBoard.Down();
        }

        ///<inheritdoc/>
        public bool Up()
        {
            return _KeyBoard.Up();
        }
    }
}
